<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty {include_is} function plugin
 *
 * Type:     function<br>
 * Name:     Include_js<br>
 * Purpose:  Prints <script> tag for Prototype lybrary
 * @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image}
 *      (Smarty online manual)
 * @param array
 * @param Smarty
 * @return string
 */
function smarty_function_ajax_loader($params, &$smarty)
{
    
	$element = (isset($params['element']) && $params['element']) ? $params['element'] : null;
	
	if ($element !== null) 
	{
		$smarty->ajax_loader_element = $element;
	} else 
	{
		unset($smarty->ajax['loader_element']);
	}
	
	
	
}


/* vim: set expandtab: */

?>
